package personal.hrsw1.demo1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import personal.hrsw1.demo1.domain.Goods;
import personal.hrsw1.demo1.service.GoodsService;
import personal.hrsw1.demo1.mapper.GoodsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【goods】的数据库操作Service实现
* @createDate 2025-04-25 16:14:59
*/
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods>
    implements GoodsService{
    @Autowired
    GoodsMapper goodsMapper;

    @Override
    public List<Goods> selectAll() {
        return goodsMapper.selectAll();
    }

    @Override
    public List<Goods> findAll() {
        return goodsMapper.selectAll();
    }
//    @Override
//    public List<Goods> getGoods() {
//        return goodsMapper.getGoods();
//    }
}




